Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add built-in ReST support #16

Open
wants to merge 2 commits into
base: leapide-code-1.58.2
Choose a base branch
from

Conversation

randomir
Copy link
Member

@randomir randomir commented May 2, 2022

Install the following ReST extensions

and update user settings:

{
    "restructuredtext.languageServer.disabled": true,
    "restructuredtext.linter.disabled": true,
    "restructuredtext.confPath": ""
}

so that docutils are used for rendering, and user is not prompted to install language server, or to select Sphinx's conf.py. Also, we disable the linter, as v170 of ReST extension does linting via shell command exec (slow).

These User settings can be overridden on Remote or Workspace level.

Use an older version of `restructuredtext` extension for performance.
@randomir randomir closed this May 6, 2022
@randomir randomir reopened this May 6, 2022
config.update(name, value, vscode.ConfigurationTarget.Global);
}
}
let config = vscode.workspace.getConfiguration();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use const (optional)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, config.update call did not work when config was declared as const. I'll double-check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants